package com.example.hiltuse;

import dagger.Module;
import dagger.Provides;
import dagger.hilt.InstallIn;
import dagger.hilt.android.components.ActivityComponent;

/**
 *  用来提供对象
 */
@InstallIn(ActivityComponent.class)
@Module
public class HttpModule {

    @Provides
    public HttpObject getHttpObject(){
        //  初始化对象   把所有需要初始化的对象都可以放在这里


        return new HttpObject();
    }

}
